import { server } from "@/utils/request";

export function getListUserData() {
  return server({
    url: "/action?method=listuser",
    method: "post",
    headers: {
      Authorization: "Bearer " + localStorage.token,
    },
    data: {
      page: 1,
    },
  });
}

export function getLoginStatusData(data) {
  return server({
    url: "/action?method=login",
    method: "post",
    headers: {
      Authorization: "Bearer " + localStorage.token,
    },
    data,
  });
}
